package com.zhanghu.builder.other_builder;

/**
 * @Author: zhanghu
 * @Description:
 * @Date: Create in 10:50 2020/1/17
 * @modified by:
 */
public class OtherBuilderTest {
    public static void main(String[] args) {
        //这里使用new创建的式Builder对象
        Computer computer = new Computer.ComputerBuilder().buildKeyboard("dell").buildMouse("牧马人").getComputer();
        System.out.println(computer);
        computer = new Computer.ComputerBuilder().buildScreen("dell屏幕").buildKeyboard("asus").buildMouse("aa").getComputer();
        System.out.println(computer);
    }
}
